package com.dream.house.entity;

import java.util.List;

/**
 * 用户基本信息
 * @author ahk
 * @since 1.0
 */
public class UserDTO extends AbstractDTO{
	private static final long serialVersionUID = 1L;
	
	private String userId;
	private String userName;
	private String pass;
	private String userType;//1-管理员，0-普通用户，默认为0
	private String groupId;//部门ID
	private String mobile;//手机
	private String address;//联系地址
	private String memo;//备注
	
	private List<MenuDTO> menus;
	
	public boolean isAdmin(){
		return userType.equals("1");
	}
	
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getPass() {
		return pass;
	}
	public void setPass(String pass) {
		this.pass = pass;
	}
	public String getUserType() {
		return userType;
	}
	public void setUserType(String userType) {
		this.userType = userType;
	}
	public String getGroupId() {
		return groupId;
	}
	public void setGroupId(String groupId) {
		this.groupId = groupId;
	}
	public String getMobile() {
		return mobile;
	}
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getMemo() {
		return memo;
	}
	public void setMemo(String memo) {
		this.memo = memo;
	}
	public List<MenuDTO> getMenus() {
		return menus;
	}
	public void setMenus(List<MenuDTO> menus) {
		this.menus = menus;
	}

}
